﻿using EWC.HIS.Domain.Data.Enums;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace EWC.HIS.Domain.Data.Repositories
{
    public interface IDbContext : IDisposable, IAsyncDisposable
    {
        public Task<IDbConnection> GetConnectionAsync();

        /// <summary>
        /// 得到事务
        /// </summary>

        public DbTransaction Transaction { get; }

        /// <summary>
        /// 数据库连接设置
        /// </summary>
        public EDbConnStr DbConnStr { get; set; }

    }

}
